package cn.hsa.fqz.task.service.impl;

import cn.hsa.fqz.task.dao.SysPageTrackLogMapper;
import cn.hsa.fqz.task.entity.SysPageTrackLog;
import cn.hsa.fqz.task.service.SysPageTrackLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @Description TODO
 * @ClassName SysPageTrackLogServiceImpl
 * @Author Liu.Jun
 * @Create 2023-07-30 14:15
 * @Version 1.0.0
 */
@Slf4j
@Service
public class SysPageTrackLogServiceImpl implements SysPageTrackLogService {

    @Autowired
    private SysPageTrackLogMapper sysPageTrackLogMapper;

    @Override
    public Integer insertTrackLog(SysPageTrackLog sysPageTrackLog) {
        sysPageTrackLog.setCreateTime(new Date());
        return sysPageTrackLogMapper.insertSelective(sysPageTrackLog);
    }
}
